﻿<UserControl x:Class="LiveTiss.Guias.UserControls.InternacaoObstetrica"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:converter="clr-namespace:LiveTiss.Classes.TypeConverter"
    mc:Ignorable="d" Width="910" x:Name="ucObstetrica">

    <UserControl.Resources>
        <converter:EnumConverter x:Key="enumConverter" />
    </UserControl.Resources>

    <StackPanel Width="910">
        <Grid Width="890" Height="25" Margin="0,0,6,0">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="0.024*"/>
                <ColumnDefinition Width="0.976*"/>
            </Grid.ColumnDefinitions>
            <StackPanel Grid.ColumnSpan="2" Margin="0" Grid.Row="2" Grid.Column="2">
                <CheckBox IsChecked="{Binding Path=Value.emGestacao, ElementName=ucObstetrica, ValidatesOnDataErrors=True, NotifyOnValidationError=True, Mode=TwoWay}">
                    <TextBlock TextWrapping="Wrap" Text="Em gestação" FontFamily="Segoe UI" FontSize="13.333"/>
                </CheckBox>
            </StackPanel>
        </Grid>
        <Grid Width="890" Height="25" Margin="0,0,6,0">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="0.024*"/>
                <ColumnDefinition Width="0.976*"/>
            </Grid.ColumnDefinitions>
            <StackPanel Grid.ColumnSpan="2" Margin="0" Grid.Row="2" Grid.Column="2">
                <CheckBox IsChecked="{Binding Path=Value.aborto, ElementName=ucObstetrica, ValidatesOnDataErrors=True, NotifyOnValidationError=True, Mode=TwoWay}">
                    <TextBlock TextWrapping="Wrap" Text="Aborto" FontFamily="Segoe UI" FontSize="13.333"/>
                </CheckBox>
            </StackPanel>
        </Grid>
        <Grid Width="890" Height="25" Margin="0,0,6,0">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="0.024*"/>
                <ColumnDefinition Width="0.976*"/>
            </Grid.ColumnDefinitions>
            <StackPanel Grid.ColumnSpan="2" Margin="0" Grid.Row="2" Grid.Column="2">
                <CheckBox IsChecked="{Binding Path=Value.transtornoMaternoRelGravidez, ElementName=ucObstetrica, ValidatesOnDataErrors=True, NotifyOnValidationError=True, Mode=TwoWay}">
                    <TextBlock TextWrapping="Wrap" Text="Transtorno materno relacionado a gravidez" FontFamily="Segoe UI" FontSize="13.333"/>
                </CheckBox>
            </StackPanel>
        </Grid>
        <Grid Width="890" Height="25" Margin="0,0,6,0">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="0.024*"/>
                <ColumnDefinition Width="0.976*"/>
            </Grid.ColumnDefinitions>
            <StackPanel Grid.ColumnSpan="2" Margin="0" Grid.Row="2" Grid.Column="2">
                <CheckBox IsChecked="{Binding Path=Value.complicacaoPeriodoPuerperio, ElementName=ucObstetrica, ValidatesOnDataErrors=True, NotifyOnValidationError=True, Mode=TwoWay}">
                    <TextBlock TextWrapping="Wrap" Text="Complicação Puerpério" FontFamily="Segoe UI" FontSize="13.333"/>
                </CheckBox>
            </StackPanel>
        </Grid>
        <Grid Width="890" Height="25" Margin="0,0,6,0">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="0.024*"/>
                <ColumnDefinition Width="0.976*"/>
            </Grid.ColumnDefinitions>
            <StackPanel Grid.ColumnSpan="2" Margin="0" Grid.Row="2" Grid.Column="2">
                <CheckBox IsChecked="{Binding Path=Value.atendimentoRNSalaParto, ElementName=ucObstetrica, ValidatesOnDataErrors=True, NotifyOnValidationError=True, Mode=TwoWay}">
                    <TextBlock TextWrapping="Wrap" Text="Atendimento ao RN na sala de parto" FontFamily="Segoe UI" FontSize="13.333"/>
                </CheckBox>
            </StackPanel>
        </Grid>
        <Grid Width="890" Height="25" Margin="0,0,6,0">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="0.024*"/>
                <ColumnDefinition Width="0.976*"/>
            </Grid.ColumnDefinitions>
            <StackPanel Grid.ColumnSpan="2" Margin="0" Grid.Row="2" Grid.Column="2">
                <CheckBox IsChecked="{Binding Path=Value.complicacaoNeonatal, ElementName=ucObstetrica, ValidatesOnDataErrors=True, NotifyOnValidationError=True, Mode=TwoWay}">
                    <TextBlock TextWrapping="Wrap" Text="Complicação Neonatal" FontFamily="Segoe UI" FontSize="13.333"/>
                </CheckBox>
            </StackPanel>
        </Grid>
        <Grid Width="890" Height="25" Margin="0,0,6,0">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="0.024*"/>
                <ColumnDefinition Width="0.976*"/>
            </Grid.ColumnDefinitions>
            <StackPanel Grid.ColumnSpan="2" Margin="0" Grid.Row="2" Grid.Column="2">
                <CheckBox IsChecked="{Binding Path=Value.baixoPeso, ElementName=ucObstetrica, ValidatesOnDataErrors=True, NotifyOnValidationError=True, Mode=TwoWay}">
                    <TextBlock TextWrapping="Wrap" Text="Baixo Peso &lt;2,5 Kg." FontFamily="Segoe UI" FontSize="13.333"/>
                </CheckBox>
            </StackPanel>
        </Grid>
        <Grid Width="890" Height="25" Margin="0,0,6,0">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="0.024*"/>
                <ColumnDefinition Width="0.976*"/>
            </Grid.ColumnDefinitions>
            <StackPanel Grid.ColumnSpan="2" Margin="0" Grid.Row="2" Grid.Column="2">
                <CheckBox IsChecked="{Binding Path=Value.partoCesareo, ElementName=ucObstetrica, ValidatesOnDataErrors=True, NotifyOnValidationError=True, Mode=TwoWay}">
                    <TextBlock TextWrapping="Wrap" Text="Parto Cesário" FontFamily="Segoe UI" FontSize="13.333"/>
                </CheckBox>
            </StackPanel>
        </Grid>
        <Grid Width="890" Height="25" Margin="0,0,6,0">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="0.024*"/>
                <ColumnDefinition Width="0.976*"/>
            </Grid.ColumnDefinitions>
            <StackPanel Grid.ColumnSpan="2" Margin="0" Grid.Row="2" Grid.Column="2">
                <CheckBox IsChecked="{Binding Path=Value.partoNormal, ElementName=ucObstetrica, ValidatesOnDataErrors=True, NotifyOnValidationError=True, Mode=TwoWay}">
                    <TextBlock TextWrapping="Wrap" Text="Parto" FontFamily="Segoe UI" FontSize="13.333"/>
                </CheckBox>
            </StackPanel>
        </Grid>
        <Grid Width="890" Height="53" Margin="0,0,6,0">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="0.024*"/>
                <ColumnDefinition Width="0.976*"/>
            </Grid.ColumnDefinitions>
            <StackPanel Grid.ColumnSpan="2" Margin="0" Grid.Row="2" Grid.Column="2">
                <TextBlock TextWrapping="Wrap" Text="Se óbito em mulher:" FontFamily="Segoe UI" FontSize="13.333"/>
                <ComboBox Width="300" Margin="0,6,0,0" HorizontalAlignment="Left" Height="25" SelectedValue="Key" DisplayMemberPath="Value"
                    ItemsSource="{Binding Path=Value.obitoMulherItems, ElementName=ucObstetrica, Mode=OneWay}"
                    SelectedIndex="{Binding Path=Value.obitoMulher, ElementName=ucObstetrica, Converter={StaticResource enumConverter}, ConverterParameter='ObitoMulher', ValidatesOnDataErrors=True, NotifyOnValidationError=True, Mode=TwoWay}"
                    />
            </StackPanel>
        </Grid>
        <Grid Width="890" Margin="0,0,6,0">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="0.024*"/>
                <ColumnDefinition Width="0.976*"/>
            </Grid.ColumnDefinitions>
            <StackPanel Grid.ColumnSpan="2" Margin="0" Grid.Row="2" Grid.Column="2">
                <TextBlock TextWrapping="Wrap" Text="Declarações Nascidos Vivos:" FontFamily="Segoe UI" FontSize="13.333"/>
                <StackPanel Orientation="Horizontal" Margin="0,6,0,0">
                    <TextBox x:Name="txtDeclaracao" Width="430" />
                    <Button x:Name="btnAdicionarDeclaracao" Content="Adicionar" Margin="10,0,0,0" Width="100" Click="btnAdicionarDeclaracao_Click" />
                </StackPanel>
                <ListBox x:Name="lbxDeclaracao" Width="540" Height="100" HorizontalAlignment="Left" Margin="0,6,0,0" 
                    ItemsSource="{Binding Path=Value.declaracoesNascidosVivos, ElementName=ucObstetrica, Mode=OneWay}" />
                <Button x:Name="btnRemoverDeclaracao" Content="Remover" HorizontalAlignment="Left" Margin="440,6,0,0" Width="100" Click="btnRemoverDeclaracao_Click" />
            </StackPanel>
        </Grid>
        <Grid Width="890" Height="53" Margin="0,0,6,0">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="0.024*"/>
                <ColumnDefinition Width="0.976*"/>
            </Grid.ColumnDefinitions>
            <StackPanel Grid.ColumnSpan="2" Margin="0" Grid.Row="2" Grid.Column="2">
                <TextBlock TextWrapping="Wrap" Text="Quantidade Nascidos Vivos a Termo:" FontFamily="Segoe UI" FontSize="13.333"/>
                <TextBox Margin="0,6,323,0" MaxLength="20" Text="{Binding Path=Value.qtdNascidosVivosTermo, ElementName=ucObstetrica, ValidatesOnDataErrors=True, NotifyOnValidationError=True, Mode=TwoWay}" />
            </StackPanel>
        </Grid>
        <Grid Width="890" Height="53" Margin="0,0,6,0">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="0.024*"/>
                <ColumnDefinition Width="0.976*"/>
            </Grid.ColumnDefinitions>
            <StackPanel Grid.ColumnSpan="2" Margin="0" Grid.Row="2" Grid.Column="2">
                <TextBlock TextWrapping="Wrap" Text="Quantidade Nascidos Mortos:" FontFamily="Segoe UI" FontSize="13.333"/>
                <TextBox Margin="0,6,323,0" MaxLength="20" Text="{Binding Path=Value.qtdNascidosMortos, ElementName=ucObstetrica, ValidatesOnDataErrors=True, NotifyOnValidationError=True, Mode=TwoWay}" />
            </StackPanel>
        </Grid>
        <Grid Width="890" Height="53" Margin="0,0,6,0">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="0.024*"/>
                <ColumnDefinition Width="0.976*"/>
            </Grid.ColumnDefinitions>
            <StackPanel Grid.ColumnSpan="2" Margin="0" Grid.Row="2" Grid.Column="2">
                <TextBlock TextWrapping="Wrap" Text="Quantidade Nascidos Vivos Prematuro:" FontFamily="Segoe UI" FontSize="13.333"/>
                <TextBox Margin="0,6,323,0" MaxLength="20" Text="{Binding Path=Value.qtdVivosPrematuros, ElementName=ucObstetrica, ValidatesOnDataErrors=True, NotifyOnValidationError=True, Mode=TwoWay}" />
            </StackPanel>
        </Grid>
    </StackPanel>
</UserControl>
